package sany.iec.service;

import org.openmuc.j60870.Server;
import sany.iec.entity.DataEntity;
import sany.iec.entity.ServerEntity;

import java.io.IOException;
import java.util.List;

/**
 * @Author 托马斯
 * @Date 2025/7/6 18:24
 * @Description IEC104Service
 */
public interface IEC104ServerService {

    void startServer(ServerEntity data, Server server) throws IOException;

    void removeServer(Server server);

    /**
     * 广播遥测数据
     */
    void broadYCValues(Server server, DataEntity data, float value);

    /**
     * 广播遥信数据
     */
    void broadYXValues(Server server, DataEntity data, boolean value);

}
